include ../../Makehead

LdFlags += -r
CFlags += -finline-functions -I../../include
CPP += -I../../include

.c.s:
	$(CC) $(CFlags) -S -o $*.s $<
.s.o:
	$(AS) -o $*.o $<
.c.o:
	$(CC) $(CFlags) -c -o $*.o $<

OBJS = floppy.o hd.o ramdisk.o ll_rw_blk.o 

build: blk_drv.a 

blk_drv.a: $(OBJS)
	@$(AR) rcs blk_drv.a $(OBJS)
	@sync 

clean:
	rm -rf *.o *.s blk_drv.a 